<template>
    <router-view v-slot="{ Component, route }">
      <transition name="el-fade-in-linear" mode="out-in">
        <keep-alive>
          <component :is="Component" :key="route.path" />
        </keep-alive>
      </transition>
    </router-view>
</template>

